<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
        <meta name="author" content="order by dede58.com"/>
		<title>小米商城</title>
		<link rel="stylesheet" type="text/css" href="/public/default/css/style.css">
		<link rel="stylesheet" href="/public/default/css/swiper.min.css">

		<script src="/public/default/js/jquery-1.10.1.js"></script>		
		<script src="/public/default/js/swiper.min.js"></script>
		<script src="/public/default/js/base.js"> </script>


	</head>
	<body>
	<!-- start header -->
		<header>
			<div class="top center">
				<div class="left fl">
					<ul class="clearfix">

						<%for(var i=0;i<topNav.length;i++){ %>

							<li><a href="<%=topNav[i].link%>"  <% if(topNav[i].is_opennew==2){%>target="_blank" <%}%> ><%=topNav[i].title%></a></li>
						<%}%>
											
					</ul>
				</div>
				<div class="right fr">
					<div class="gouwuche fr"><a href="/cart">购物车</a></div>
					<div class="fr">
						<ul>


							<%if(userinfo && userinfo.phone){%>
								<li class="userinfo">
									
									
									<a href="#"><%=userinfo.phone%></a>
								
									<i class="i"></i>

									<ol>

										<li><a href="/user/welcome">个人中心</a></li>

										<li><a href="#">喜欢</a></li>

										<li><a href="/pass/loginOut">退出登录</a></li>
									</ol>
								
								</li>

								<li>|</li>

								<li><a href="/user/order">我的订单</a></li>
							<%}else{%>
							<li><a href="javascript:void(0)" id="loginButton" target="_blank">登录</a></li>
							<li>|</li>
							<li><a href="/register/registerStep1" target="_blank" >注册</a></li>
						
							<%}%>
							
						</ul>
					</div>
					<div class="clear"></div>
				</div>
				<div class="clear"></div>
			</div>
		</header>